package org.apache.ibatis.ibator.api;

import java.util.ArrayList;
import java.util.List;

import org.apache.ibatis.ibator.pluginpo.*;

public class GeneratedExtendFile extends GeneratedFile{
	
	private String templetName;
	private String daoImportPath;
	private String targetPackage;
	private String tableName;
	
	public String getTableName() {
		return tableName;
	}

	public void setTableName(String tableName) {
		this.tableName = tableName;
	}

	public String getDaoImportPath() {
		return daoImportPath;
	}

	public void setDaoImportPath(String daoImportPath) {
		this.daoImportPath = daoImportPath;
	}

	public String getTempletName() {
		return templetName;
	}

	public void setTempletName(String templetName) {
		this.templetName = templetName;
	}
	

	

	public GeneratedExtendFile(String targetProject,String targetPackage,String tableName,String daoImportPath,String templetName){
		super(targetProject);
		this.templetName=templetName;	
		this.targetPackage=targetPackage;
		this.daoImportPath=daoImportPath;
	}


	@Override
	public String getFileName() {
		// TODO Auto-generated method stub
		return tableName+"ServiceImpl";
	}

	public void setTargetPackage(String targetPackage) {
		this.targetPackage = targetPackage;
	}

	@Override
	public String getFormattedContent() {
		
		ServiceImplPO po=new ServiceImplPO();
		List<String> imports=new ArrayList<String>(1);
		imports.add(daoImportPath);
		
		
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public String getTargetPackage() {
		// TODO Auto-generated method stub
		return targetPackage;
	}

	@Override
	public boolean isMergeable() {
		// TODO Auto-generated method stub
		return false;
	}

}
